package models;

import javax.persistence.Entity;

import play.db.jpa.Model;

@Entity
public class ShippingInformation extends Model {

	public String phone;
	public String companyName;
	public String street;
	public String streetNo;
	public String city;
	public String postalCode;
	
	public ShippingInformation(String phone, String street, String streetNo, String city, String postalCode){
		this(phone, null, street, streetNo, city, postalCode);
	}

	public ShippingInformation(String phone, String companyName, String street, String streetNo, String city, String postalCode){
		this.phone = phone;
		this.companyName = companyName;
		this.street = street;
		this.streetNo = streetNo;
		this.city = city;
		this.postalCode = postalCode;
		create();
	}
	
	public String getPhone(){
		return this.phone;
	}
	
	public String getCompanyName(){
		return this.companyName;
	}
	
	public String getStreet(){
		return this.street;
	}
	
	public String getStreetNo(){
		return this.streetNo;
	}
	
	public String getCity(){
		return this.city;
	}
	
	public String getPostalCode(){
		return this.postalCode;
	}
	
	
}
